  :root {
    /* Cores da Marca */
    --ua-purple-primary: #000000;     /* Roxo Fechado */
    --ua-purple-accent: #28a745;      /* Roxo Vivo */
    --ua-green-success: #3AA935;      /* Verde Sucesso */
    --ua-gold-warning: #DFBA18;       /* Dourado */
    
    /* Tipografia (Assumindo que você importou Pacaembu no seu CSS externo, se não, fará fallback para sans-serif) */
    --ua-font: 'Pacaembu', sans-serif;  
    --ua-font-paragraph:'Montserrat',sans-serif;

    /* Tema 1: Dark Menu / Light Body (Padrão) */
    --bg-body-l: #F3F3F3;             
    --text-body-l: #333333;           
    --text-muted-l: #666666;          
    --bg-card-l: #FFFFFF;             
    --border-l: #E0E0E0;              
    --title-l: #39027C;               
    --shadow-l: 0 4px 24px rgba(57, 2, 124, 0.08);

    /* Tema 2: Light Menu / Dark Body (Equipe) */
    --bg-body-d: #1A0033;             
    --text-body-d: #FFFFFF;           
    --text-muted-d: rgba(255,255,255,0.7);
    --bg-card-d: rgba(255,255,255,0.05); 
    --border-d: rgba(255,255,255,0.1);
    --title-d: #FFFFFF;               
    --shadow-d: 0 4px 24px rgba(0, 0, 0, 0.3);

    /* Definições de Navegação Dinâmica */
    --nav-dark-bg: rgba(26, 0, 51, 0.95);  
    --nav-dark-text: #FFFFFF;
    --nav-light-bg: rgba(255, 255, 255, 0.96); 
    --nav-light-text: #39027C;

    /* Padrões de Design Uniavan */
    --radius-ua: 14px;
    --radius-btn: 50px;
    --shadow-ua: 0 4px 24px rgba(57, 2, 124, 0.12);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; cursor: default; } 

  body {
    font-family: var(--ua-font-paragraph);
    background: var(--bg-body-l);
    color: var(--text-body-l);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  h1, h2, h3, h4, .nav-brand span, .tab-btn { font-weight: 600; font-family: var(--ua-font); line-height: 1.2; }

  /* ==========================================
     NAVEGAÇÃO DINÂMICA (NAV)
     ========================================== */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 4%;
    height: 65px;
    transition: all 0.3s ease; 
    backdrop-filter: blur(10px);
  }

  nav.nav-dark { background: var(--nav-dark-bg); color: var(--nav-dark-text); box-shadow: 0 2px 16px rgba(0,0,0,0.2); }
  nav.nav-dark .nav-brand span { color: #FFFFFF; }
  nav.nav-dark .nav-links a { color: rgba(255,255,255,0.8); }
  nav.nav-dark .nav-links a:hover { color: var(--ua-gold-warning); }
  nav.nav-dark .nav-toggle { color: #FFFFFF; }

  nav.nav-light { background: var(--nav-light-bg); color: var(--nav-light-text); box-shadow: 0 2px 16px rgba(57, 2, 124, 0.15); }
  nav.nav-light .nav-brand span { color: var(--ua-purple-primary); }
  nav.nav-light .nav-links a { color: var(--ua-purple-primary); }
  nav.nav-light .nav-links a:hover { color: var(--ua-purple-accent); }
  nav.nav-light .nav-toggle { color: var(--ua-purple-primary); }

  .nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .nav-brand span { font-weight: 800; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; }
  .nav-links { display: flex; gap: 30px; list-style: none; }
  .nav-links a { text-decoration: none; font-size: 0.85rem; font-weight: 700; transition: 0.2s; text-transform: uppercase; letter-spacing: 0.03em; font-family: var(--ua-font);}
  .nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; }

  /* ==========================================
     PADRÃO DE SEÇÕES COM CONTRASTE
     ========================================== */
  section { padding: 80px 4%; position: relative; }
  .container { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; align-items: center; text-align: center;}

  .section-label { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; font-family: var(--ua-font);}
  .section-title { font-size: clamp(2rem, 3vw, 3rem); margin-bottom: 20px; }
  .section-sub { font-size: 1.05rem; max-width: 650px; font-weight: 400; margin-bottom: 50px; font-family: var(--ua-font-paragraph);}

  .theme-l { background-color: var(--bg-body-l); color: var(--text-body-l); }
  .theme-l .section-title { color: var(--title-l); }
  .theme-l .section-sub { color: var(--text-muted-l); }
  .theme-l .section-label { color: var(--ua-purple-accent); }
  .theme-l .card-ua { background: var(--bg-card-l); border: 1px solid var(--border-l); color: var(--text-body-l); box-shadow: var(--shadow-l); }

  .theme-d { background-color: var(--bg-body-d); color: var(--text-body-d); }
  .theme-d .section-title { color: var(--title-d); }
  .theme-d .section-sub { color: var(--text-muted-d); }
  .theme-d .section-label { color: var(--ua-gold-warning); }
  .theme-d .card-ua { background: var(--bg-card-d); border: 1px solid var(--border-d); color: var(--text-body-d); box-shadow: var(--shadow-d); }
  .theme-d p { color: var(--text-muted-d); }

  /* ==========================================
     HERO & DATA WAVE CANVAS
     ========================================== */
  /* ==========================================
     HERO & DATA WAVE CANVAS (Ondas Dotted)
     ========================================== */
     .hero {
        min-height: 70vh; /* Aumentado ligeiramente para a onda respirar */
        background: #0B001A; /* Fundo bem escuro para realçar o azul/rosa do canvas */
        display: flex; 
        padding: 120px 4% 80px;
        overflow: hidden;
        position: relative;
      }
    
      #waveCanvas {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        z-index: 1;
        pointer-events: none;
        opacity: 0.9; 
      }
    
      .hero-inner { max-width: 800px; position: relative; z-index: 2; }
      .hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(223, 186, 24, 0.15); border: 1px solid rgba(223, 186, 24, 0.4); border-radius: var(--radius-btn); padding: 7px 18px; color: var(--ua-gold-warning); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 30px; font-family: var(--ua-font);}
      
      /* Correção do dimensionamento Mobile do H1 */
      .hero h1 { 
          font-size: clamp(2rem, 3vw, 5.2rem); 
          color: #FFFFFF; 
          margin-bottom: 25px; 
          line-height: 1.1; 
          word-break: break-word; /* Previne o texto de estourar a tela */
      }
      .hero h1 span { color: var(--ua-gold-warning); }
      .hero p { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 620px; margin-bottom: 45px; }
      .hero-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
    
      /* BOTÕES UNIAVAN */
      .btn-ua {
        display: inline-flex; align-items: center; gap: 10px;
        padding: 14px 30px; border-radius: 10px;
        font-size: 0.8rem; font-weight: 700; text-decoration: none;
        transition: all 0.2s ease; font-family: var(--ua-font);
      }
      .btn-primary-ua { background: var(--ua-green-success); color: #fff; box-shadow: 0 4px 20px rgba(58, 169, 53, 0.35); }
      .btn-primary-ua:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(58, 169, 53, 0.45); }
      .btn-outline-ua { background: rgba(255,255,255,0.05); color: #fff; border: 1.5px solid rgba(255,255,255,0.4); backdrop-filter: blur(5px);}
      .btn-outline-ua:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
  /* ==========================================
     COMPONENTE EQUIPE (Theme D)
     ========================================= */
  .equipe-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 45px; }
  .tab-btn { padding: 12px 26px; border-radius: var(--radius-btn); border: 2px solid var(--border-d); background: transparent; color: var(--text-muted-d); font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: 0.2s; text-transform: uppercase; letter-spacing: 0.03em; }
  .tab-btn.active, .tab-btn:hover { background: #FFFFFF; color: var(--ua-purple-primary); border-color: #FFFFFF; }
  
  .tab-content { display: none; animation: uaFadeIn 0.4s; width: 100%; text-align: left; }
  .tab-content.active { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px;}
  @keyframes uaFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
  
  .role-card { padding: 30px; border-radius: var(--radius-ua); display: flex; flex-direction: column; gap: 16px; transition: transform 0.2s;}
  .role-card:hover { transform: translateY(-4px); }
  .role-header { display: flex; align-items: center; gap: 16px; }
  .role-title { font-weight: 800; font-size: 1.05rem; }
  .role-subtitle { font-size: 0.75rem; font-weight: 700; color: var(--ua-gold-warning); text-transform: uppercase; letter-spacing: 0.04em;}
  .role-desc { font-size: 0.9rem; line-height: 1.7; }
  .role-avatar { 
    /* 1. Trava o tamanho absoluto (ignora o Flexbox tentando esmagar) */
    width: 56px !important; 
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    flex-shrink: 0; 
    
    border-radius: 50%; 
    background: linear-gradient(135deg, var(--ua-purple-accent), var(--ua-purple-primary)); 
    
    display: flex; 
    align-items: center; 
    justify-content: center; 
    
    overflow: hidden;
    padding: 0; /* 2. Garante que nenhum espaçamento interno empurre a imagem */
  }
  
  div.role-avatar img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover !important;
    display: block;
    
    /* 4. Resolve bugs visuais em Safari/iOS onde a imagem vaza do overflow do pai */
    border-radius: 50%; 
    margin: 0;
    padding: 0;
  }
  /* OUTRAS SEÇÕES */
  .sobre-grid { display: grid; grid-template-columns: 1fr; gap: 60px; align-items: center; }
  
  .secoes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: left; width: 100%;}
  .secao-card { padding: 35px; border-radius: var(--radius-ua); transition: 0.3s; }
  .secao-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-ua); }
  .secao-icon { font-size: 2.2rem; margin-bottom: 20px; color: var(--ua-purple-accent); }
  .secao-card h3 { font-size: 1.2rem; color: var(--title-l); margin-bottom: 10px; }
  .secao-card p { font-size: 0.95rem; line-height: 1.6; }

  /* FAQ (Theme D) */
  .faq-accordion { max-width: 800px; margin: 0 auto; width: 100%;}
  .faq-item { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; margin-bottom: 10px; }
  .faq-question { width: 100%; text-align: left; background: none; border: none; padding: 18px 25px; color: #fff; font-family: var(--ua-font); font-weight: 700; font-size: 1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
  .faq-answer { max-height: 0; overflow: hidden; transition: 0.3s; padding: 0 25px; font-size: 0.95rem; color: var(--text-muted-d); text-align: left; }
  .faq-item.open .faq-answer { max-height: 300px; padding: 0 25px 20px; }

  /* CONTATO (Theme L) */
  .contato-card { padding: 40px 20px; border-radius: var(--radius-ua); text-align: center; max-width: 700px; margin: 0 auto; box-shadow: var(--shadow-ua); border: 1px solid var(--border-l); width: 100%;}
  .contato-card h3 { color: var(--ua-purple-primary); margin-bottom: 15px; }
  .contato-card p { margin-bottom: 25px; color: var(--text-muted-l);}
  .btn-contact-ua { display: inline-flex; align-items: center; gap: 10px; background: var(--ua-purple-primary); color: white; padding: 16px 35px; border-radius: var(--radius-btn); font-weight: 700; text-decoration: none; font-size: 1.05rem; font-family: var(--ua-font);}
  .btn-contact-ua:hover { background: var(--ua-purple-accent);}

  /* RESPONSIVO */
  @media(max-width: 992px) { 
      .secoes-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media(max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 65px; left: 0; right: 0; background: var(--nav-dark-bg); padding: 20px; text-align: center; box-shadow: 0 10px 10px rgba(0,0,0,0.1); gap: 15px;}
    .nav-links.open a { color: white !important;} /* Força branco no menu aberto no mobile */
    .nav-toggle { display: block; }
    .secoes-grid { grid-template-columns: 1fr; }
    section { padding: 60px 4%; }
    .hero { padding: 100px 4% 60px; }
    .btn-contact-ua{
        padding: 4%; font-size: 14px;
    }
  }

  /* ==========================================
     COMPONENTE EQUIPE (Cartões do Swiper)
     ========================================= */
     .team-swiper .swiper-slide {
        height: auto; /* Força os cartões a terem a mesma altura */
    }
    
    .role-card { 
        padding: 32px; border-radius: var(--radius-ua); display: flex; flex-direction: column; 
        gap: 16px; transition: transform 0.3s ease, opacity 0.3s ease;
        background: var(--bg-card-d); border: 1px solid var(--border-d); color: var(--text-body-d);
        height: 100%; /* Preenche toda a altura do slide */
        text-align: left;
    }
    .role-card:hover { transform: translateY(-5px); border-color: var(--ua-green-success); }
    
    .role-header { display: flex; align-items: center; gap: 20px; }
    .role-avatar { 
        width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
        background: linear-gradient(135deg, var(--ua-green-success), var(--ua-gold-warning)); 
        display: flex; align-items: center; justify-content: center; color: #fff; 
        font-weight: 800; font-size: 1.4rem; font-family: var(--ua-font);
    }
    .role-title { font-weight: 800; font-size: 1.15rem; color: var(--title-d); margin-top: 4px; }
    .role-subtitle { font-size: 0.75rem; font-weight: 700; color: var(--ua-gold-warning); text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--ua-font);}
    .role-desc { font-size: 0.95rem; line-height: 1.7; color: var(--text-muted-d); }
  
    /* Estilização das bolinhas do Swiper para o fundo escuro */
    .team-swiper .swiper-pagination-bullet { background: rgba(255,255,255,0.3); opacity: 1; }
    .team-swiper .swiper-pagination-bullet-active { background: var(--ua-gold-warning); transform: scale(1.2); }

    .cursor-trail {
        position: fixed;
        pointer-events: none; /* Muito importante: impede que o emoji bloqueie os cliques do utilizador */
        z-index: 10000;
        font-size: 1.3rem;
        animation: uaTrailAnimation 1s forwards ease-out;
        opacity: 0.8;
      }
      
      @keyframes uaTrailAnimation {
        0% { transform: translateY(0) scale(1); opacity: 0.8; }
        100% { transform: translateY(-40px) scale(0.5); opacity: 0; }
      }


      /* ==========================================
     NOVO CURSOR: CÍRCULO PULSANTE (Abre/Fecha)
     ========================================== */
  #uaCursorCircle {
    position: fixed;
    pointer-events: none; /* IMPERATIVO: impede que o círculo bloqueie cliques */
    z-index: 10000;
    width: 25px; /* Tamanho base */
    height: 25px; /* Tamanho base */
    border: 3px solid var(--ua-gold-warning, #DFBA18); /* Dourado Uniavan */
    border-radius: 50%; /* Faz o círculo */
    background: transparent;
    opacity: 0; /* Começa oculto */
    transition: opacity 0.3s ease; /* Fade in suave ao carregar */
    
    /* Centraliza o elemento exatamente no ponto left/top definido pelo JS */
    transform: translate(-50%, -50%); 
    
    /* Define a animação contínua (Abre e Fecha) */
    animation: uaCirclePulse 2s infinite ease-in-out;
  }

  /* Mostra o círculo apenas quando o mouse está sobre a janela do navegador */
  body:hover #uaCursorCircle {
    opacity: 0.8;
  }

  /* Animação: Pulsação "Abre e Fecha" */
  @keyframes uaCirclePulse {
    0%, 100% {
      transform: translate(-50%, -50%) scale(1); /* Estado Fechado/Base */
      border-color: var(--ua-gold-warning, #DFBA18); /* Dourado */
      opacity: 0.8;
    }
    50% {
      transform: translate(-50%, -50%) scale(1.6); /* Estado Aberto/Expandido */
      border-color: var(--ua-green-success, #3AA935); /* Verde Sucesso Uniavan */
      opacity: 0.2; /* Esmaece ao abrir para efeito visual suave */
    }
  }

  /* ==========================================
     NOVO CURSOR: NEGATIVO (DIFFERENCE) + MOBILE OPTIMIZED
     ========================================== */
  
  /* Oculta o cursor padrão APENAS em computadores (com rato) */
  @media (pointer: fine) {
    body, a, button, input, .tab-btn, .faq-question, .filter-btn {
      cursor: none !important;
    }
  }

  /* Ponto central (A "ponta" da seta) */
  #uaCursorDot {
    position: fixed;
    top: 0; left: 0;
    width: 8px;
    height: 8px;
    background-color: white; /* Branco em 'difference' vira o oposto do fundo */
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference; /* Cria o efeito negativo mágico */
    transform: translate(-50%, -50%);
  }

  /* Anel exterior (Acompanha suavemente) */
  #uaCursorRing {
    position: fixed;
    top: 0; left: 0;
    width: 34px;
    height: 34px;
    border: 2px solid white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    mix-blend-mode: difference; /* Cria o efeito negativo mágico */
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
  }

  /* Efeito de Expansão quando passa por cima de links/botões */
  #uaCursorRing.hovered {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
  }

  /* Esconde completamente os cursores customizados em Mobile/Tablets */
  @media (pointer: coarse), (max-width: 768px) {
    #uaCursorDot, #uaCursorRing {
      display: none !important;
    }
  }


  /* ==========================================
     COMPONENTE DE ESTATÍSTICAS (CONTADOR)
     ========================================== */
     .stats-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        width: 100%;
        margin-top: 20px;
      }
    
      .stat-card {
        padding: 35px 25px;
        border-radius: var(--radius-ua);
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: transform 0.3s ease;
      }
    
      .stat-card:hover {
        transform: translateY(-5px);
        border-color: var(--ua-gold-warning);
      }
    
      .stat-icon {
        font-size: 2.2rem;
        color: var(--ua-gold-warning);
        margin-bottom: 15px;
      }
    
      .stat-card-title {
        font-size: 1.3rem;
        color: var(--title-d);
        margin-bottom: 25px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
      }
    
      /* Blocos internos (Card Vídeo) */
      .stat-sub-blocks {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
      }
    
      .sub-block {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px;
        border-radius: 10px;
      }
    
      /* Destaque para o maior número */
      .sub-block.highlight {
        background: rgba(223, 186, 24, 0.1); /* Fundo sutilmente dourado */
        border-color: var(--ua-gold-warning);
      }
      .sub-block.highlight .stat-number {
        color: var(--ua-gold-warning);
        font-size: 2.4rem;
      }
    
      /* Estilos Gerais de Texto do Contador */
      .stat-single {
        margin-top: auto;
        margin-bottom: auto;
      }
    
      .stat-number {
        font-family: var(--ua-font);
        font-size: 2rem;
        font-weight: 800;
        line-height: 1;
        color: #FFFFFF;
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 4px;
      }
    
      .highlight-green { color: var(--ua-green-success); font-size: 3.5rem; }
      .highlight-gold { color: var(--ua-gold-warning); font-size: 3.5rem; }
    
      .small-text {
        font-size: 1rem;
        font-weight: 500;
        font-family: var(--ua-font-paragraph);
        opacity: 0.7;
        color: #FFFFFF;
      }
    
      .stat-label {
        font-size: 0.9rem;
        font-family: var(--ua-font-paragraph);
        color: var(--text-muted-d);
        margin-top: 8px;
        text-transform: uppercase;
        font-weight: 600;
      }
    
      /* Responsividade */
      @media(max-width: 992px) {
        .stats-grid { grid-template-columns: 1fr; }
      }